﻿/**********************************天使物流*******************************************
* 功能描述:基本信息-线路
* 作者:石锦涛
* 时间:2022-01-08
* 
**********************************天使物流*******************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShiProject.Models.Common;

namespace TianShiProject.Models.BaseInfo.Lines
{
    public interface ILineAppRepository
    {
        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        Task<List<LineDto>> GetPage();

        /// <summary>
        ///显示 查询
        /// </summary>
        /// <returns></returns>
        Task<List<LineDto>> GetPageId(int id);
        /// <summary>
        /// 显示线路
        /// </summary>
        /// <param name="name"></param>
        /// <param name="begin"></param>
        /// <param name="end"></param>
        /// <param name="shifou"></param>
        /// <param name="phone"></param>
        /// <param name="hid"></param>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        Task<PageResponse<LineDtos>> GetShowLine(string name, string begin, string end, int shifou, string phone,int hid, int pageindex, int pagesize);
        /// <summary>
        /// 删除线路
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteDelLine(int id);
        /// <summary>
        /// 批量删除线路
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DeleteDelsLine(string ids);
        /// <summary>
        /// 编辑修改
        /// </summary>
        /// <param name="LineDtos"></param>
        /// <returns></returns>
        Task<int> PutUpdateLine(LineDtos lineDtos);
        /// <summary>
        /// 添加线路
        /// </summary>
        /// <param name="LineDtos"></param>
        /// <returns></returns>
        Task<int> PostAddLine(LineDtos lineDtos);
        /// <summary>
        /// 绑定
        /// </summary>
        /// <returns></returns>
        Task<PageResponse<OwnerDto>> GetBind();
    }
}
